package alipay.openplatform.edu.campus.jiuye.common.utils;/**
 * Created by zhangyang on 30/8/2016.
 */

import alipay.openplatform.edu.campus.jiuye.common.model.Operater;

/**
 * 线程上下文工具
 *
 * @author zhangyang
 * @create 2016-08-30
 */
public class ThreadContextUtils {
    private static ThreadLocal<Operater> currentOperater=new ThreadLocal<>();

    public static void setOperaterToThreadLocal(Operater operater){
        currentOperater.set(operater);
    }

    public static Operater getThreadOperater(){
        return currentOperater.get();
    }

}
